package com.joysuch.wwyt.mh.service;

import com.joysuch.wwyt.mh.bean.vo.MhMajorHazardPlanItemVO;
import com.joysuch.wwyt.mh.dto.MhMajorHazardPlanItemDTO;
import com.joysuch.wwyt.mh.entity.MhMajorHazardPlanItem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zqw
 * @since 2022-05-17
 */
public interface MhMajorHazardPlanItemService extends IService<MhMajorHazardPlanItem> {

    /**
     * 根据id集合删除item
     *
     * @param deleteItemIds
     */
    void deleteByIds(List<Long> deleteItemIds);

    /**
     * 保存item集合
     *
     * @param planId
     * @param itemDtoList
     * @return
     */
    List<MhMajorHazardPlanItem> saveItems(Long planId, List<MhMajorHazardPlanItemDTO> itemDtoList);

    /**
     * 根据计划id查询指标
     *
     * @param planId
     * @return
     */
    List<MhMajorHazardPlanItemVO> findByPlanId(Long planId,String deleteFlag);
}
